home *** CD-ROM | disk | FTP | other *** search
- class com.ndimedia.ui.TextBox extends com.ndimedia.ui.UIObject
- {
- var m_format;
- var m_namespace = "TextBox";
- var m_text = "";
- var m_width = 1024;
- function TextBox(scope, txt, w)
- {
- super(scope,false);
- this.m_format = new TextFormat();
- this.m_format.size = 16;
- this.m_format.font = "Arial";
- this.m_text = txt;
- if(w)
- {
- this.m_width = w;
- }
- this.repaint();
- }
- function get text()
- {
- return this.m_text;
- }
- function set text(txt)
- {
- this.m_text = txt;
- this.repaint();
- }
- function get format()
- {
- return this.m_format;
- }
- function get width()
- {
- return this.m_width;
- }
- function setWidth(w)
- {
- this.m_width = w;
- this.repaint();
- }
- }
-